package com.school.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.school.entity.HljtGradetime;
@Repository
public interface HljtGradetimeDao {
	/**
	 * 通过年级id查找对应上课时间
	 * @return
	 */
	List<HljtGradetime> findGradetime(Integer GradeId);
	
	int  UpdateGradetimeByGrade(List<HljtGradetime> list);
	
	int selectCountByGradeId(int GradeId);
	
	int  insertGradetimeByGrade(List<HljtGradetime> list);
	
	/**
	 * 通过年级id查找对应上课时间
	 * @return
	 */
	List<HljtGradetime> getGradetime(@Param(value="GradeId")Integer GradeId,@Param(value="section")Integer section);
	/**
	 * 添加
	 * @param hljtGradetime
	 * @return
	 */
	Integer addGradetime(HljtGradetime hljtGradetime);
	/**
	 * 修改
	 * @param hljtGradetime
	 * @return
	 */
	Integer updateGradetime(HljtGradetime hljtGradetime);
}
